import 'package:bloc/bloc.dart';

enum LikesEvent { confirm, cancel }

class LikesBloc extends Bloc<LikesEvent, bool> {
  @override
  bool get initialState => false;

  @override
  Stream<bool> mapEventToState(LikesEvent event) async* {
    switch (event) {
      case LikesEvent.confirm:
        yield true;
        break;
      case LikesEvent.cancel:
        yield false;
        break;
    }
  }
}